﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MvcMasterPage.Entity;
using Commons.Entity.CommonEnums;

namespace MvcMasterPage.Data
{
    public class UserRepository : TestRepositoryBase
    {
        /// <summary>
        /// 得到默认的结果集
        /// </summary>
        /// <returns></returns>
        public IQueryable<User> GetModel()
        {
            return _db.Set<User>()
                .Where(i => i.Status != (int)Status.Deleted)
                .OrderByDescending(i => i.ID);
        }

       
    }
}